package com.ruixin.mvc.config;

import java.lang.reflect.Parameter;

/**
 * ParameterMapping实体类
 */
public class ParameterMapping {

    private Parameter parameter;

    private String name;

    private boolean required = true;

    private boolean isArg;
    public ParameterMapping(Parameter parameter, String name, boolean required,boolean isArg) {
        this.parameter = parameter;
        this.name = name;
        this.required = required;
        this.isArg = isArg;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public Parameter getParameter() {
        return parameter;
    }

    public void setParameter(Parameter parameter) {
        this.parameter = parameter;
    }

    public boolean isArg() {
        return isArg;
    }

    public void setArg(boolean arg) {
        isArg = arg;
    }
}
